package avicit.bdp.dlm.vo;

/**
 * @author mayanj
 * 存储信息VO
 */
public class StorageInfoVo {

    /**
     * 存储接入数量
     */
    private int dataSourceNum;
    /**
     * 已用容量
     */
    private long totalAmount;
    private String totalAmountLabel;

    /**
     * 可用容量
     */
    private long usableAmount;
    private String usableAmountLabel;

    /**
     * 总容量
     */
    private long availableAmount;
    private String availableAmountLabel;


    /**
     * 表总数/文件总数/对象数量
     */
    private Long objectCount;

    /**
     * 存储组数量/桶数量
     */
    private Long otherCount;

    /**
     * 近7天日均增量
     */
    private Double avgIncrementOfRecent7;

    /**
     * 近7天日均增量单位
     */
    private String avgIncrementOfRecent7Unit;

    /**
     * 是否超载，值为true，可用天数标红
     */
    private boolean isOver;

    /**
     * 预估可用天数
     */
    private String availableDays;


    /**
     * 已用百分比
     */
    private String usagePercent;

    public int getDataSourceNum() {
        return dataSourceNum;
    }

    public void setDataSourceNum(int dataSourceNum) {
        this.dataSourceNum = dataSourceNum;
    }

    public long getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(long totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getTotalAmountLabel() {
        return totalAmountLabel;
    }

    public void setTotalAmountLabel(String totalAmountLabel) {
        this.totalAmountLabel = totalAmountLabel;
    }

    public long getUsableAmount() {
        return usableAmount;
    }

    public void setUsableAmount(long usableAmount) {
        this.usableAmount = usableAmount;
    }

    public String getUsableAmountLabel() {
        return usableAmountLabel;
    }

    public void setUsableAmountLabel(String usableAmountLabel) {
        this.usableAmountLabel = usableAmountLabel;
    }

    public long getAvailableAmount() {
        return availableAmount;
    }

    public void setAvailableAmount(long availableAmount) {
        this.availableAmount = availableAmount;
    }

    public String getAvailableAmountLabel() {
        return availableAmountLabel;
    }

    public void setAvailableAmountLabel(String availableAmountLabel) {
        this.availableAmountLabel = availableAmountLabel;
    }

    public Long getObjectCount() {
        return objectCount;
    }

    public void setObjectCount(Long objectCount) {
        this.objectCount = objectCount;
    }

    public Long getOtherCount() {
        return otherCount;
    }

    public void setOtherCount(Long otherCount) {
        this.otherCount = otherCount;
    }

    public Double getAvgIncrementOfRecent7() {
        return avgIncrementOfRecent7;
    }

    public void setAvgIncrementOfRecent7(Double avgIncrementOfRecent7) {
        this.avgIncrementOfRecent7 = avgIncrementOfRecent7;
    }

    public String getAvgIncrementOfRecent7Unit() {
        return avgIncrementOfRecent7Unit;
    }

    public void setAvgIncrementOfRecent7Unit(String avgIncrementOfRecent7Unit) {
        this.avgIncrementOfRecent7Unit = avgIncrementOfRecent7Unit;
    }

    public boolean isOver() {
        return isOver;
    }

    public void setOver(boolean over) {
        isOver = over;
    }

    public String getAvailableDays() {
        return availableDays;
    }

    public void setAvailableDays(String availableDays) {
        this.availableDays = availableDays;
    }


    public String getUsagePercent() {
        return usagePercent;
    }

    public void setUsagePercent(String usagePercent) {
        this.usagePercent = usagePercent;
    }

    @Override
    public String toString() {
        return "StorageInfoVo{" +
                "dataSourceNum=" + dataSourceNum +
                ", totalAmount=" + totalAmount +
                ", totalAmountLabel='" + totalAmountLabel + '\'' +
                ", usageAmount=" + usableAmount +
                ", usageAmountLabel='" + usableAmountLabel + '\'' +
                ", availableAmount=" + availableAmount +
                ", availableAmountLabel=" + availableAmountLabel +
                ", objectCount=" + objectCount +
                ", otherCount=" + otherCount +
                ", avgIncrementOfRecent7=" + avgIncrementOfRecent7 +
                ", avgIncrementOfRecent7Unit='" + avgIncrementOfRecent7Unit + '\'' +
                ", isOver=" + isOver +
                ", availableDays='" + availableDays + '\'' +
                ", usagePercent='" + usagePercent + '\'' +
                '}';
    }

}
